#ifndef ADDGAMEOBJECTCOMMAND_H
#define ADDGAMEOBJECTCOMMAND_H

#include "abstractundocommand.h"
class AbstractGameObject;
class Document;

class AddGameObjectCommand : public AbstractUndoCommand
{
public:
	AddGameObjectCommand(QPointer<Document> doc, QPointer<AbstractGameObject> gameObject, bool bAdd,
		QUndoCommand* parent = 0);

	void undo();
	void redo();
private:
	QPointer<Document> m_doc;
	QPointer<AbstractGameObject> m_gameObject;
	bool m_bAdd;
};

#endif // ADDGAMEOBJECTCOMMAND_H
